package com.example.my_test_2.repos;

import com.example.my_test_2.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
//用户接口
public interface UserRepository extends JpaRepository<User,Integer>{
    List<User> findAll();
    //static User findByUserName(String userName);
    User findByUserName(String userName);
}